home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 2
/
The Arsenal Files 2 (Arsenal Computer).ISO
/
wildcat
/
vham.wcc
< prev
next >
Wrap
Text File
|
1994-08-01
|
3KB
|
90 lines
rem this quick and dirty program uses the buckmaster hcall program
rem and its associated database to verify a user based on his callsign
rem and year of birth. easily modified for other stuff.
rem assumes that the callsign is stored in user.computerType, but
rem this too can be modified
rem have fun
rem brad.shipp@chowda.com (or 1:323/120)
rem constants
const CDROMDrive = "Z:"
const WCDrive = "H:"
const newSecLevel = "VERIFIED"
rem variable declarations
dim CurrentUser as string*25
dim CallSign as string*6
dim birthDate as string*8
dim BirthYear as string*2
dim temp as string
dim commandLine as string
dim CDROMYearofBirth as string*2
dim workFile as string
rem environment
carrierCheck on
rem get needed data from user record
callsign=user.company
birthYear=formatDate(user.birthdate,"YY")
callsign=left(user.computerType,6)
rem display to user
cls
Print "Ham Radio Callsign Verifier"
Print
Print "Please verify the following information..."
print
print "User name: ";user.name
print "Callsign : ";callsign
print "Date of birth: ";birthYear
if not inputYesNo("Is this information correct?") then
print "Please correct this information using the [Y] command from the main menu."
waitEnter
else
rem build hcall command line
commandLine = CDRomDrive+"HCALL "+CDRomDrive+" "+callsign + ">"+wcDrive+"hcall.TMP"
rem calculate path to work file
workFile=left(tempPath,len(tempPath)-5)+"hcall.tmp"
rem for debugging, display it to the user
cls
print "Getting data from CDROM Database... please wait!"
rem run the command
shell commandLine
rem get data from temp file
print "Database lookup completed... "
print
OPEN workFile FOR INPUT AS #1
Input #1, temp
input #1, temp
input #1, temp
Input #1, temp
input #1, temp
Close #1
temp=trim(temp)
CDRomYearOfBirth=mid(temp,11,2)
if val(CDRomYearOfBirth)=val(birthYear) then
print "User data confirmed. Upgrade successful."
user.secLevel=newSecLevel
else
print "User data not confirmed. Upgrade failed."
end if
waitEnter
end if